package pruebas;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import java.net.ServerSocket;
import java.net.Socket;

public class TerminalControllerStub
{

	public static void main (String[]arg) throws IOException
	{

		System.out.println("terminal controller");
		ServerSocket welcomeSocket = new ServerSocket(10020);
		
		while (true)
		{
			// IN
			Socket connectionSocket = welcomeSocket.accept(); 
				
			BufferedReader inFromClient = new BufferedReader(new
				InputStreamReader(connectionSocket.getInputStream())); 
			
			String msg = inFromClient.readLine();
			
			
			System.out.println(msg);
			connectionSocket.close();
			
		
			
		}		
		

	}
	
}
